package com.dgut.common.mapper;

import com.dgut.common.entity.CollectorApplication;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zyq
 * @since 2022-03-13
 */
@Repository
public interface CollectorApplicationMapper extends BaseMapper<CollectorApplication> {


    @Select("select * from collector_application where user_id = #{userId} order by create_time desc limit 1")
    CollectorApplication selectByUserId(Integer userId);
}
